import request from '@/utils/request'

// 查询项目干系人列表
export function listStakeholder(query) {
    return request({
        url: '/project/stakeholder/list',
        method: 'get',
        params: query
    })
}

// 查询项目干系人详情
export function infoStakeholder(id) {
    return request({
        url: '/project/stakeholder/' + id,
        method: 'get'
    })
}

// 修改
export function updateStakeholder(data) {
    return request({
        url: '/project/stakeholder',
        method: 'put',
        data: data
    })
}

// 新增
export function addStakeholder(data) {
    return request({
        url: '/project/stakeholder',
        method: 'post',
        data: data
    })
}

// 删除
export function delStakeholder(ids) {
    return request({
        url: '/project/stakeholder/' + ids,
        method: 'delete',
    })
}